projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e79a6b
)
x86: acpi: Align FACS table to a 64 byte boundary
author
Bin Meng
<
[email protected]
>
Sat, 7 May 2016 14:46:27 +0000
(07:46 -0700)
committer
Bin Meng
<
[email protected]
>
Mon, 23 May 2016 07:18:00 +0000
(15:18 +0800)
Per ACPI spec, the FACS table address must be aligned to a 64 byte
boundary (Windows checks this, but Linux does not).
Signed-off-by: Bin Meng <
[email protected]
>
Reviewed-by: Stefan Roese <
[email protected]
>
Tested-by: Stefan Roese <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/x86/lib/acpi_table.c
patch
|
blob
|
history
diff --git
a/arch/x86/lib/acpi_table.c
b/arch/x86/lib/acpi_table.c
index 7ff6e8c7959ab24933a8c3f1bc3bffcd6ec48904..9cdea9352b9b5974997a1ee5d05cd9aac3507cd5 100644
(file)
--- a/
arch/x86/lib/acpi_table.c
+++ b/
arch/x86/lib/acpi_table.c
@@
-339,7
+339,11
@@
u32 write_acpi_tables(u32 start)
current = ALIGN(current, 16);
xsdt = (struct acpi_xsdt *)current;
current += sizeof(struct acpi_xsdt);
- current = ALIGN(current, 16);
+ /*
+ * Per ACPI spec, the FACS table address must be aligned to a 64 byte
+ * boundary (Windows checks this, but Linux does not).
+ */
+ current = ALIGN(current, 64);
/* clear all table memory */
memset((void *)start, 0, current - start);